//
//  Button.h
//  Return Of The Lemi
//
//  Created by Paul Vishayanuroj on 11/10/09.
//  Copyright 2009 Cornell University. All rights reserved.
//

#import "cocos2d.h"

#define BUTTON_MOVE_SPEED 8

typedef enum  {
	kLocked,
	kMovingRight,
	kMovingLeft,
} ButtonMoveState;

@interface Button : Menu
{
}

+ (id) ButtonWithImage:(NSString *)file file2:(NSString *)file2 position:(CGPoint)pos target:(id)target sel1:(SEL)sel1 sel2:(SEL)sel2;

@end

@interface ButtonItem : MenuItem 
{
	Sprite *unpressed;
	Sprite *pressed;

	SEL press;
	SEL depress; 
	
	id tar;
	
	CGPoint desiredPos;
	ButtonMoveState buttonMoveState;	
}

@property (nonatomic) CGPoint desiredPos;
@property (nonatomic) ButtonMoveState buttonMoveState;

+ (id) ButtonItemWithImage:(NSString *)file file2:(NSString *)file2 target:(id)target sel1:(SEL)sel1 sel2:(SEL)sel2;
- (id) InitWithImage:(NSString *)file file2:(NSString *)file2 target:(id)target sel1:(SEL)sel1 sel2:(SEL)sel2;

- (void) Tick;

@end
